//
// Created by zhulingfeng on 2020/2/29.
//
#include <algorithm>
#include "sort_test.hpp"
TEST_F(SortTest, ArraySTLUnstableSort) {
  for (int i = 0; i < unsorted_vectors_.size(); ++i) {
    auto& array = unsorted_vectors_[i];
    std::sort(array.begin(), array.end());
    EXPECT_EQ(array, sorted_vectors_[i]);
  }
}
TEST_F(SortTest, ArraySTLStableSort) {
  for (int i = 0; i < unsorted_vectors_.size(); ++i) {
    auto& array = unsorted_vectors_[i];
    std::stable_sort(array.begin(), array.end());
    EXPECT_EQ(array, sorted_vectors_[i]);
  }
}
